Barcodes MacroPdf417

This will create an instance of MacroPdf417 Barcode.

Syntax

macropdfBarcode = Barcodes.MacroPdf417 ( )

Properties

Angle float Gets or sets the angle of the MacroPdf417 Barcode.
AutoExpand bool Gets or sets whether the barcode will be automatically increased if the current size cannot accommodate all the characters.
CompactionMode MacroPdf417CompactionMode Gets or sets the compaction mode of the Pdf417 barcode. Refer the Compaction mode page for a list of enumerations.
DotDuration float Duration of the dot in micro seconds when the HatchStyle is HatchStyle.Dot
Elevation float The z coordinate of the barcodes starting position.
ErrorCorrectionLevel MacroPdf417ErrorCorrectionLevel Gets or sets the error correction level of the Pdf417 barcode. Refer the Error Correction Level page for a list of enumerations.
HatchStyle HatchStyle The hatch pattern used to fill the barcode.
Height float The height of the Barcode.
Invert bool If true, Inverts the barcode.
LineSpace float The gap between adjacent hatch lines
MarkingOrder MarkingOrder Gets or sets the order in which the hatch and the outline will be marked.
NumberOfColumns int Gets or sets the number of columns of the MacroPdf417 Barcode.
NumberOfRows int Gets or sets the number of rows of the MacroPdf417 Barcode.
PrintRatio float Ratio between the widths of wide and narrow bars
QuietZone bool Specifies whether the QuietZone of the barcode is enabled or not.
Text string Alphanumeric characters, which will get encoded into the Barcode.
Width float The width of the Barcode.
X float The x coordinate of the starting position.
Y float The y coordinate of the starting position.

Methods

SetHatchingDirection(HorizontalHatchDirection hatchDirection, HorizontalHatchLineScanDirection hatchLineScanDirection) Sets the hatching Direction
SetHatchingDirection(VerticalHatchDirection hatchDirection , VerticalHatchLineScanDirection hatchLineScanDirection) Sets the hatching Direction

Return Values

Returns an instance of MacroPdf417-code type Barcode.

 

Copy
Example
---- This program will scan a MacroPdf417 barcode 
   
--Set the units as Millimeters 
SetUnits(Units.Millimeters) 
--Laser Parameter settings 
-- Laser Parameter settings 
Laser.JumpSpeed = 2000 
Laser.MarkSpeed = 1000     
--Delay settings 
Laser.JumpDelay = 100 
Laser.MarkDelay = 100     
         
--Assign MacroPdf417 barcode to variable "var" 
var = Barcodes.MacroPdf417() 
--Barcode height is 14.5 
var.Height = 14.5 
--X coordinate is 0.5 
var.X = 0.5 
--y coordinate is 0.5 
var.Y = 0.5     
--Angle of the barcode is 30 degrees 
var.Angle = 30 
--Auto expand enabled  
var.AutoExpand = true 
--Apply horizontal line hatch pattern  
var.HatchStyle = HatchStyle.Horizontal 
--Sets the line space as 0.1 Millimeters 
var.Linespace = 0.1   
--Barcode includes "ScanMaster ScanScript" text as the string  
var.Text = "ScanMaster ScanScript" 
--Set the compaction mode as text 
var.CompactionMode = MacroPdf417CompactionMode.TextMode 
--Specify the columns of the barcode 
var.NumberOfColumns = 8 
--Specify the error correction level of the barcode 
var.ErrorCorrectionLevel = MacroPdf417ErrorCorrectionLevel.Level1  
--Specify the rows of the barcode 
var.NumberOfRows = 6 
--Scan Pdf417 barcode 
Image.Barcode(var)